﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zj.HttpCodeDemo.ConsoleApp.CodeFirst.Core
{
    /// <summary>
    /// Conceptual model user login error log.
    /// </summary>
    [Table("UserLoginErrLog", Schema = "dbo")]
    public class UserLoginErrLog
        :Entity
    {
        [Required,MaxLength(64)]
        public string IPAddress { get; set; }
        public DateTime LoginTime { get; set; }
        public long UserId { get; set; }

        [ForeignKey("UserId")]
        public virtual User User { get; set; }
    }
}
